package cn.tedu.csmall.order.client;

import cn.tedu.csmall.commons.pojo.stock.dto.StockReduceCountDTO;
import cn.tedu.csmall.commons.restful.JsonResult;
import cn.tedu.csmall.order.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "stock",configuration = DefaultFeignConfig.class)
public interface StockClient {
    @PostMapping("/base/stock/reduce/count")
    public JsonResult reduceCommodityCount(@RequestBody StockReduceCountDTO stockReduceCountDTO) ;
}
